num = int(input('请输入一个五位数：'))
time = 1
r_num=0
for i in str(num):
    temp=time*int(i)
    r_num+=temp
    time*=10

if r_num == num:
    print('是回文数')
else:
    print('不是回文数')